package com.hdoit.apollo.logical.shop.model;

import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.tennetcn.data.message.ModelBase;

import javax.persistence.Entity;
/**
 * @author      tancongzhu
 * @email       
 * @createtime  2018年04月02日 17:44:52
 * @comment
 */
@Entity
@Table(name="shop_customer")
public class Customer extends ModelBase{
    //Id
    @Id
    @Column(name="customerId")
    private String customerId;
    
    //微信id
    @Column(name="openId")
    private String openId;
    
    //昵称
    @Column(name="nickName")
    private String nickName;

    //名称
    @Column(name="customerName")
    private String customerName;

    //联系方式
    @Column(name="customerTel")
    private String customerTel;

    //欠款数
    @Column(name="customerDebt")
    private Double customerDebt;
    
    //收退款操作金额(已付)
    @Column(name="paymentMoney")
    private Double paymentMoney;

    //门店id
    @Column(name="shopId")
    private String shopId;

    //创建时间
    @Column(name="createDate")
    private Date createDate;

    //创建人id
    @Column(name="createUserId")
    private String createUserId;

    //创建人名称
    @Column(name="createUserName")
    private String createUserName;

    //修改时间
    @Column(name="modifyDate")
    private Date modifyDate;

    //修改人id
    @Column(name="modifyUserId")
    private String modifyUserId;

    //修改人名称
    @Column(name="modifyUserName")
    private String modifyUserName;

    //删除标记
    @Column(name="deleteMark")
    private Integer deleteMark;
    
    //备注
    @Column(name="comment")
    private String comment;
    
    //欠货数
    @Transient
    private Double customerDebtCargo;
    
    //销量
    @Transient
    private Integer saleNum;
    
    //交易总额
    @Transient
    private Double saleMoney;
    
    //已付金额
    @Transient
    private Double paidAmount;
    
    //开单总额
    @Transient
    private Double billingMoneyAll;
    
    //退货与退欠货单总额
    @Transient
    private Double billingMoneyReturn;
    
    //客户分类id
    @Column(name="classifyId")
    private String classifyId;
    
    @Transient
    private List<Address> addresses;
    
    @Transient
    private CustomerClassify customerClassify;
    
	public Double getPaymentMoney() {
		return paymentMoney;
	}
	public void setPaymentMoney(Double paymentMoney) {
		this.paymentMoney = paymentMoney;
	}
	public List<Address> getAddresses() {
		return addresses;
	}
	public void setAddresses(List<Address> addresses) {
		this.addresses = addresses;
	}
	public CustomerClassify getCustomerClassify() {
		return customerClassify;
	}
	public void setCustomerClassify(CustomerClassify customerClassify) {
		this.customerClassify = customerClassify;
	}
	public Double getSaleMoney() {
		return saleMoney;
	}
	public void setSaleMoney(Double saleMoney) {
		this.saleMoney = saleMoney;
	}
	public Integer getSaleNum() {
		return saleNum;
	}
	public void setSaleNum(Integer saleNum) {
		this.saleNum = saleNum;
	}
	public String getComment() {
		return comment;
	}
	public void setComment(String comment) {
		this.comment = comment;
	}

    public String getCustomerId(){
        return this.customerId;
    }
    public void setCustomerId(String customerId){
         this.customerId=customerId;
    }

    public String getCustomerName(){
        return this.customerName;
    }
    public void setCustomerName(String customerName){
         this.customerName=customerName;
    }

    public String getCustomerTel(){
        return this.customerTel;
    }
    public void setCustomerTel(String customerTel){
         this.customerTel=customerTel;
    }

    public Double getCustomerDebt(){
        return this.customerDebt;
    }
    public void setCustomerDebt(Double customerDebt){
         this.customerDebt=customerDebt;
    }

    public Double getCustomerDebtCargo(){
        return this.customerDebtCargo;
    }
    public void setCustomerDebtCargo(Double customerDebtCargo){
         this.customerDebtCargo=customerDebtCargo;
    }

    public String getShopId(){
        return this.shopId;
    }
    public void setShopId(String shopId){
         this.shopId=shopId;
    }

    public Date getCreateDate(){
        return this.createDate;
    }
    public void setCreateDate(Date createDate){
         this.createDate=createDate;
    }

    public String getCreateUserId(){
        return this.createUserId;
    }
    public void setCreateUserId(String createUserId){
         this.createUserId=createUserId;
    }

    public String getCreateUserName(){
        return this.createUserName;
    }
    public void setCreateUserName(String createUserName){
         this.createUserName=createUserName;
    }

    public Date getModifyDate(){
        return this.modifyDate;
    }
    public void setModifyDate(Date modifyDate){
         this.modifyDate=modifyDate;
    }

    public String getModifyUserId(){
        return this.modifyUserId;
    }
    public void setModifyUserId(String modifyUserId){
         this.modifyUserId=modifyUserId;
    }

    public String getModifyUserName(){
        return this.modifyUserName;
    }
    public void setModifyUserName(String modifyUserName){
         this.modifyUserName=modifyUserName;
    }

    public Integer getDeleteMark(){
        return this.deleteMark;
    }
    public void setDeleteMark(Integer deleteMark){
         this.deleteMark=deleteMark;
    }
	public String getClassifyId() {
		return classifyId;
	}
	public void setClassifyId(String classifyId) {
		this.classifyId = classifyId;
	}
	public Double getPaidAmount() {
		return paidAmount;
	}
	public void setPaidAmount(Double paidAmount) {
		this.paidAmount = paidAmount;
	}

	public Double getBillingMoneyAll() {
		return billingMoneyAll;
	}
	public void setBillingMoneyAll(Double billingMoneyAll) {
		this.billingMoneyAll = billingMoneyAll;
	}
	public Double getBillingMoneyReturn() {
		return billingMoneyReturn;
	}
	public void setBillingMoneyReturn(Double billingMoneyReturn) {
		this.billingMoneyReturn = billingMoneyReturn;
	}
	public String getOpenId() {
		return openId;
	}
	public void setOpenId(String openId) {
		this.openId = openId;
	}
	public String getNickName() {
		return nickName;
	}
	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	
}
